package com.eascs.workflow.wf.form;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.hibernate.validator.constraints.NotBlank;

@XmlRootElement
public class ProcessNodeTemplateForm {
	/** 流程节点号 */
	private String nodeId;

	/** 所属流程号 */
	private String processNo;

	/** 节点名称 */
	@NotBlank
	private String nodeName;

	/** 节点编码 */
	@NotBlank
	private String nodeCode;

	/** 节点描述 */
	private String nodeDesc;

	/** 状态描述 */
	private String stateDesc;

	/** 序号 */
	private Integer orderNo;

	/** 是否加签 */
	@NotNull
	private Integer isSign = 0;

	/** 是否转交 */
	@NotNull
	private Integer isChange = 0;

	/** 允许否决到结束 */
	@NotNull
	private Integer isReject = 0;

	/** 是否允许退回 上一步 */
	private Integer isBack = 0;

	@NotNull
	private Integer isPass = 0;

	/** 驳回 */
	@NotNull
	private Integer isTurnedDown = 0;
	/** 收回 */
	@NotNull
	private Integer isTakeBack = 0;

	@XmlElement(name = "node_type")
	private String nodeType;

	/** 是否系统发起 */
	private Integer isSystemStart = 0;

	private Integer auditorType;

	private String roleNo;

	private String roleName;

	/** 创建人 */
	private String creator;

	/** 节点动态表单URL */
	private String referUrl;

	/** 意见模板 */
	private String notesTemplate;

	/** 节点时效 */
	private Integer timeEffective;

	// 是否发送邮件
	private Integer isSendEmail;
	// 是否发送短信
	private Integer isSendSms;
	// 是否微信通知
	private Integer isSendWechat;
	// 是否自动审核
	private Integer isAutoAudit;
	//加签类型
	private String signType;

	public String getNodeId() {
		return nodeId;
	}

	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}

	public String getProcessNo() {
		return processNo;
	}

	public void setProcessNo(String processNo) {
		this.processNo = processNo;
	}

	public String getNodeName() {
		return nodeName;
	}

	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}

	public String getNodeDesc() {
		return nodeDesc;
	}

	public void setNodeDesc(String nodeDesc) {
		this.nodeDesc = nodeDesc;
	}

	public String getStateDesc() {
		return stateDesc;
	}

	public void setStateDesc(String stateDesc) {
		this.stateDesc = stateDesc;
	}

	public Integer getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	}

	public Integer getIsSign() {
		return isSign;
	}

	public void setIsSign(Integer isSign) {
		this.isSign = isSign;
	}

	public Integer getIsChange() {
		return isChange;
	}

	public void setIsChange(Integer isChange) {
		this.isChange = isChange;
	}

	public Integer getIsReject() {
		return isReject;
	}

	public void setIsReject(Integer isReject) {
		this.isReject = isReject;
	}

	public Integer getIsBack() {
		return isBack;
	}

	public void setIsBack(Integer isBack) {
		this.isBack = isBack;
	}

	public Integer getIsPass() {
		return isPass;
	}

	public void setIsPass(Integer isPass) {
		this.isPass = isPass;
	}

	public String getNodeType() {
		return nodeType;
	}

	public void setNodeType(String nodeType) {
		this.nodeType = nodeType;
	}

	public Integer getIsSystemStart() {
		return isSystemStart;
	}

	public void setIsSystemStart(Integer isSystemStart) {
		this.isSystemStart = isSystemStart;
	}

	public Integer getAuditorType() {
		return auditorType;
	}

	public void setAuditorType(Integer auditorType) {
		this.auditorType = auditorType;
	}

	public String getRoleNo() {
		return roleNo;
	}

	public void setRoleNo(String roleNo) {
		this.roleNo = roleNo;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getReferUrl() {
		return referUrl;
	}

	public void setReferUrl(String referUrl) {
		this.referUrl = referUrl;
	}

	public Integer getIsTurnedDown() {
		return isTurnedDown;
	}

	public void setIsTurnedDown(Integer isTurnedDown) {
		this.isTurnedDown = isTurnedDown;
	}

	public Integer getIsTakeBack() {
		return isTakeBack;
	}

	public void setIsTakeBack(Integer isTakeBack) {
		this.isTakeBack = isTakeBack;
	}

	public String getNotesTemplate() {
		return notesTemplate;
	}

	public void setNotesTemplate(String notesTemplate) {
		this.notesTemplate = notesTemplate;
	}

	public String getNodeCode() {
		return nodeCode;
	}

	public void setNodeCode(String nodeCode) {
		this.nodeCode = nodeCode;
	}

	public Integer getTimeEffective() {
		return timeEffective;
	}

	public void setTimeEffective(Integer timeEffective) {
		this.timeEffective = timeEffective;
	}
	
	public Integer getIsSendEmail() {
		return isSendEmail;
	}

	public void setIsSendEmail(Integer isSendEmail) {
		this.isSendEmail = isSendEmail;
	}

	public Integer getIsSendSms() {
		return isSendSms;
	}

	public void setIsSendSms(Integer isSendSms) {
		this.isSendSms = isSendSms;
	}

	public Integer getIsSendWechat() {
		return isSendWechat;
	}

	public void setIsSendWechat(Integer isSendWechat) {
		this.isSendWechat = isSendWechat;
	}

	public Integer getIsAutoAudit() {
		return isAutoAudit;
	}

	public void setIsAutoAudit(Integer isAutoAudit) {
		this.isAutoAudit = isAutoAudit;
	}
	
	public String getSignType() {
		return signType;
	}

	public void setSignType(String signType) {
		this.signType = signType;
	}

	@Override
	public String toString() {
		return "ProcessNodeTemplateForm [nodeId=" + nodeId + ", processNo=" + processNo + ", nodeName=" + nodeName + ", nodeCode=" + nodeCode + ", nodeDesc=" + nodeDesc + ", stateDesc=" + stateDesc + ", orderNo="
				+ orderNo + ", isSign=" + isSign + ", isChange=" + isChange + ", isReject=" + isReject + ", isBack=" + isBack + ", isPass=" + isPass + ", isTurnedDown=" + isTurnedDown + ", isTakeBack=" + isTakeBack
				+ ", nodeType=" + nodeType + ", isSystemStart=" + isSystemStart + ", auditorType=" + auditorType + ", roleNo=" + roleNo + ", roleName=" + roleName + ", creator=" + creator + ", referUrl=" + referUrl
				+ ", notesTemplate=" + notesTemplate + "]";
	}

}
